

<?=form_open($this->uri->uri_string(), array('id' => 'register_form'))?>
    <!--FIRST NAME-->
	<p><label for="first_name"><?=$this->lang->line('FAL_user_first_name_label')?>:</label>
	<?=form_input(array('name'=>'first_name', 
	                       'id'=>'first_name',
	                       'maxlength'=>'45', 
	                       'size'=>'45',
	                       'value'=>(isset($user_profile['first_name']) ? $user_profile['first_name'] : $this->fal_validation->{'first_name'})))?>
    <?=(isset($this->fal_validation) ? $this->fal_validation->{'first_name'.'_error'} : '')?></p>
    <!--LAST NAME-->
	<p><label for="last_name"><?=$this->lang->line('FAL_user_last_name_label')?>:</label>
	<?=form_input(array('name'=>'last_name', 
	                       'id'=>'last_name',
	                       'maxlength'=>'45', 
	                       'size'=>'45',
	                       'value'=>(isset($user_profile['last_name']) ? $user_profile['last_name'] : $this->fal_validation->{'last_name'})))?>
    <?=(isset($this->fal_validation) ? $this->fal_validation->{'last_name'.'_error'} : '')?></p>
    <!--MOBILE NO-->
	<p><label for="mobile_no"><?=$this->lang->line('FAL_user_mobile_no_label')?>:</label>
	<?=form_input(array('name'=>'mobile_no', 
	                       'id'=>'mobile_no',
	                       'maxlength'=>'12', 
	                       'size'=>'45',
	                       'value'=>(isset($user_profile['mobile_no']) ? $user_profile['mobile_no'] : $this->fal_validation->{'mobile_no'})))?>
    <?=(isset($this->fal_validation) ? $this->fal_validation->{'mobile_no'.'_error'} : '')?></p>
    <!--LAND LINE NO-->
	<p><label for="land_line_no"><?=$this->lang->line('FAL_user_land_line_no_label')?>:</label>
	<?=form_input(array('name'=>'land_line_no', 
	                       'id'=>'land_line_no',
	                       'maxlength'=>'10', 
	                       'size'=>'45',
	                       'value'=>(isset($user_profile['land_line_no']) ? $user_profile['land_line_no'] : $this->fal_validation->{'land_line_no'})))?>
    <?=(isset($this->fal_validation) ? $this->fal_validation->{'land_line_no'.'_error'} : '')?></p>
    <!--ADDRESS-->
	<p><label for="land_line_no"><?=$this->lang->line('FAL_user_address_label')?>:</label>
	<?=form_textarea(array('name'=>'address', 
	                       'id'=>'address',
						   'cols' => '32',
						   'rows' => '4',
	                       'maxlength'=>'10', 
	                       'size'=>'45',
	                       'value'=>(isset($user_profile['address']) ? $user_profile['address'] : $this->fal_validation->{'address'})))?>
    <?=(isset($this->fal_validation) ? $this->fal_validation->{'address'.'_error'} : '')?></p>
    <!--DATE OF BIRTH-->
	<p><label for="last_name"><?=$this->lang->line('TG_user_dob_label')?>:</label>
	<?=form_dropdown('date',$date_options,(isset($user_profile['date']) ? $user_profile['date'] : $this->fal_validation->{'date'}))?><?=form_dropdown('month',$month_options,(isset($user_profile['month']) ? $user_profile['month'] : $this->fal_validation->{'month'}))?><?=form_dropdown('year',$year_options,(isset($user_profile['year']) ? $user_profile['year'] : $this->fal_validation->{'year'}))?>
	 </p>
	<!--GENDER-->
	<p><label for="gender">
	<? $male ='';
		$female ='';
	$gender = (isset($user_profile['gender']) ? $user_profile['gender'] : $this->fal_validation->{'gender'})?>
	 <?(($gender) == 'M' ? $male=TRUE : '');(($gender) == 'F' ? $female=TRUE : '')
	?>
	<?=$this->lang->line('TG_user_gender_label')?>:</label>
	<?=$this->lang->line('TG_user_gender_male_label')?><?=form_radio('gender','M',$male)?>
	<?=$this->lang->line('TG_user_gender_female_label')?><?=form_radio('gender','F',$female)?>
	 </p>
    <!--EMAIL-->
    <p><label for="email"><?=$this->lang->line('FAL_user_email_label')?>:</label>
	<?=form_input(array('name'=>'email', 
	                       'id'=>'email',
	                       'maxlength'=>'120', 
	                       'size'=>'45',
						   'disabled' => 'disabled',
	                       'value'=>(isset($user_profile['email']) ? $user_profile['email'] : $this->fal_validation->{'email'})))?>
    <?=(isset($this->fal_validation) ? $this->fal_validation->{'email'.'_error'} : '')?></p>
    

    <!-- END CAPTCHA (security image)-->
<?php
if ($this->config->item('FAL_use_country'))
{?>    
    <p><label><?=$this->lang->line('FAL_user_country_label')?>:</label>
	<?=form_dropdown('country_id',
	                 $countries,
	                 (isset($this->fal_validation) ? $this->fal_validation->country_id : 0))?>
    <?=(isset($this->fal_validation) ? $this->fal_validation->{'country_id'.'_error'} : '')?></p>
<?php
}
$buttonSubmit = $this->lang->line('CNC_profile_update_label');
?>

    <p><label>
	<?=form_submit(array('name'=>'register',
						'class'=>'submit',  
	                     'value'=>$buttonSubmit))?>
    </label></p>
	
<?=form_close()?>

